package com.coconet.gas.vo.dw;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "scan_quartz")
public class ScanQuartz implements Serializable {
    /**
     * 任务id
     */
    @Id
    @Column(name = "task_id")
    private String taskId;

    /**
     * 定时开关 0关/1开
     */
    @Column(name = "on_off")
    private Integer onOff;

    /**
     * 定时cron表达式
     */
    private String cron;

    private static final long serialVersionUID = 1L;

    /**
     * 获取任务id
     *
     * @return task_id - 任务id
     */
    public String getTaskId() {
        return taskId;
    }

    /**
     * 设置任务id
     *
     * @param taskId 任务id
     */
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    /**
     * 获取定时开关 0关/1开
     *
     * @return on_off - 定时开关 0关/1开
     */
    public Integer getOnOff() {
        return onOff;
    }

    /**
     * 设置定时开关 0关/1开
     *
     * @param onOff 定时开关 0关/1开
     */
    public void setOnOff(Integer onOff) {
        this.onOff = onOff;
    }

    /**
     * 获取定时cron表达式
     *
     * @return cron - 定时cron表达式
     */
    public String getCron() {
        return cron;
    }

    /**
     * 设置定时cron表达式
     *
     * @param cron 定时cron表达式
     */
    public void setCron(String cron) {
        this.cron = cron;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", taskId=").append(taskId);
        sb.append(", onOff=").append(onOff);
        sb.append(", cron=").append(cron);
        sb.append("]");
        return sb.toString();
    }
}